
class OsnStickerMessageContent: OsnMediaMessageContext {
    var width = 0
    var height = 0

    override init(){
        super.init()
        contentType = OsnMessageContentType.sticker
    }
    override func toJson() ->[String:Any] {
        var json = super.toJson()
        json["width"] = width
        json["height"] = height
        return json
    }
    static func fromJson(_ data:[String:Any]) ->OsnStickerMessageContent {
        let c = OsnStickerMessageContent()
        super.fromJson(c, data)
        c.width = data["width"] as? Int ?? 0
        c.height = data["height"] as? Int ?? 0
        return c
    }

}
